import { CreateOpsWebApp } from '@/utils/fetch';

const request = CreateOpsWebApp();

export const getListApi = () => {
  return request.get('/role/getList');
};

export const deleteRoleApi = (params) => {
  return request.post('/role/deleteRole', params);
};

export const editRoleApi = (params) => {
  return request.post('/role/editRole', params);
};

export const addRoleApi = (params) => {
  return request.post('/role/addRole', params);
};
